﻿<?xml version="1.0"?>
<ManagementPack xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ContentReadable="true" SchemaVersion="1.1" OriginalSchemaVersion="1.1">
  <Manifest>
    <Identity>
      <ID>ServiceManager.TFSIntegration</ID>
      <Version>1.0.0.0</Version>
    </Identity>
    <Name>ServiceManager TFSIntegration</Name>
    <References>
      <Reference Alias="System">
        <ID>System.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="Console">
        <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="AdminItem.Library">
        <ID>System.AdminItem.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="IncidentManagement">
        <ID>ServiceManager.IncidentManagement.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="Incident">
        <ID>System.WorkItem.Incident.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="WorkItem">
        <ID>System.WorkItem.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
    </References>
  </Manifest>
  <TypeDefinitions>
    <EntityTypes>
      <ClassTypes>
        <ClassType ID="ServiceManager.TFSIntegration.TFSSettings" Accessibility="Public" Abstract="false" Base="AdminItem.Library!System.SolutionSettings" Hosted="false" Singleton="true" Extension="false">
          <Property ID="TFSUrl" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" />
          <Property ID="PortalIncidentURL" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false"/>
          <Property ID="SyncFrequency" Type="int" AutoIncrement="false" Key="false" CaseSensitive="false" MaxValue="60" MinValue="5" Required="true" DefaultValue="30"/>
          <Property ID="ResolvedString" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false"/>
        </ClassType>
        <ClassType ID="IncidentTFSExtension" Accessibility="Public" Abstract="false" Base="Incident!System.WorkItem.Incident" Hosted="false" Singleton="false" Extension="true">
          <Property ID="TFSBugCreated" Type="bool" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false"/>
          <Property ID="TFSBugId" Type="int" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false"/>
        </ClassType>
      </ClassTypes>
    </EntityTypes>
  </TypeDefinitions>
  <Categories>
    <Category ID="Category_6DE3B6A8CCC9E5E442DAB0CFB0DF8E21A4273FFF" Target="ConsoleTask.607c882aba254ba99c06d07c4888ff6b" Value="IncidentManagement!ServiceManager.IncidentManagement.IncidentManagementFolderTasks" />
    <Category ID="Category.DoubleClickEditAdminSetting" Target="ConsoleTask.TFSIntegration.Edit" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.DoubleClickTask"/>
    <Category ID="SCSMMPCategory" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
      <ManagementPackName>ServiceManager.TFSIntegration</ManagementPackName>
      <ManagementPackVersion>1.0.0.0</ManagementPackVersion>
    </Category>
  </Categories>
  <Presentation>
    <ConsoleTasks>
      <ConsoleTask ID="ConsoleTask.TFSIntegration.Edit" Accessibility="Public" Enabled="true" Target="ServiceManager.TFSIntegration.TFSSettings" RequireOutput="false">
        <Assembly>Console!SdkDataAccessAssembly</Assembly>
        <Handler>Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler</Handler>
        <Parameters>
          <Argument Name="Assembly">ServiceManager.TFSIntegration</Argument>
          <Argument Name="Type">ServiceManager.TFSIntegration.TFSAdminConsoleCommand</Argument>
        </Parameters>
      </ConsoleTask>
      <ConsoleTask ID="ConsoleTask.607c882aba254ba99c06d07c4888ff6b" Accessibility="Public" Enabled="true" Target="Incident!System.WorkItem.Incident" RequireOutput="false">
        <Assembly>Console!SdkDataAccessAssembly</Assembly>
        <Handler>Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler</Handler>
        <Parameters>
          <Argument Name="Assembly">ServiceManager.TFSIntegration</Argument>
          <Argument Name="Type">ServiceManager.TFSIntegration.CreateTFSBugCommand</Argument>
          <Argument>$Context/Property[Type='WorkItem!System.WorkItem']/Id$</Argument>
          <Argument>$Context/Property[Type='WorkItem!System.WorkItem']/Title$</Argument>
          <Argument>$Context/Property[Type='WorkItem!System.WorkItem']/Description</Argument>
        </Parameters>
      </ConsoleTask>
    </ConsoleTasks>
    <ImageReferences>
      <ImageReference ElementID="ConsoleTask.TFSIntegration.Edit" ImageID="Bug20X20" />
      <ImageReference ElementID="ConsoleTask.607c882aba254ba99c06d07c4888ff6b" ImageID="Bug20X20" />
      <ImageReference ElementID="ServiceManager.TFSIntegration.TFSSettings" ImageID="Bug20X20" />
    </ImageReferences>
  </Presentation>
  <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
      <DisplayStrings>
        <DisplayString ElementID="ConsoleTask.607c882aba254ba99c06d07c4888ff6b">
          <Name>Create Bug From Incident</Name>
          <Description />
        </DisplayString>
        <DisplayString ElementID="ServiceManager.TFSIntegration">
          <Name>ServiceManager Team Foundation Server Integration</Name>
        </DisplayString>
        <DisplayString ElementID="ServiceManager.TFSIntegration.TFSSettings" SubElementID="TFSUrl">
          <Name>TFS Url</Name>
        </DisplayString>
        <DisplayString ElementID="ServiceManager.TFSIntegration.TFSSettings">
          <Name>TFS Integration Settings</Name>
          <Description>Team Foundation Server Integration Settings</Description>
        </DisplayString>
        <DisplayString ElementID="ServiceManager.TFSIntegration.TFSSettings" SubElementID="PortalIncidentURL">
          <Name>PortalIncidentURL</Name>
        </DisplayString>
        <DisplayString ElementID="ServiceManager.TFSIntegration.TFSSettings" SubElementID="SyncFrequency">
          <Name>Sync Frequency</Name>
        </DisplayString>
        <DisplayString ElementID="IncidentTFSExtension">
          <Name>Extension of Incident</Name>
          <Description>Extension of class Incident</Description>
        </DisplayString>
        <DisplayString ElementID="IncidentTFSExtension" SubElementID="TFSBugCreated">
          <Name>TFSBugCreated</Name>
        </DisplayString>
        <DisplayString ElementID="IncidentTFSExtension" SubElementID="TFSBugId">
          <Name>TFSBugId</Name>
        </DisplayString>
        <DisplayString ElementID="ServiceManager.TFSIntegration.TFSSettings" SubElementID="ResolvedString">
          <Name>Resolved String</Name>
        </DisplayString>
        <DisplayString ElementID="ConsoleTask.TFSIntegration.Edit">
          <Name>Properties</Name>
        </DisplayString>
      </DisplayStrings>
    </LanguagePack>
  </LanguagePacks>
  <Resources>
    <Image ID="Bug20X20" Accessibility="Public" FileName="bug.png" HasNullStream="false" />

  </Resources>
</ManagementPack>
